<ion-view title="酒店标签">
    <ion-nav-buttons side="right">
        <button class="button button-clear button-outline" ng-if="EDITE_MODEL" ng-click="doSave()">
            保存
        </button>
    </ion-nav-buttons>

    <div class="row" style="margin-top: 53px;">
        <div class="col col-25">
            <ul class="list">
                <li class="item" ng-repeat="group in groups" ng-click="myScroll.scrollTo(group.id);">
                    <h2 class="positive" style="white-space: normal"  ng-if="myScroll.selected==group.id">{{group.name}}</h2>
                    <p style="white-space: normal"  ng-if="myScroll.selected!=group.id">{{group.name}}</p>
                </li>
            </ul>
        </div>
    </div>
    <ion-content class="crm-content" delegate-handle="mainScroll" on-scroll="myScroll.onScroll()">
        <div class="row">
            <div class="col col-25">
            </div>
            <div class="col col-75">
                <ul class="list">
                    <div ng-repeat="group in groups" id="{{group.id}}">
                        <div class="item item-divider">
                            {{group.name}} <span ng-if="group.name=='商圈位置'">(5公里内)</span>
                        </div>
                        <ion-checkbox  ng-repeat="item in group.items" class="item-checkbox-right checkbox-balanced" ng-model="item.checked" ng-change="onChange(item,item.checked);" ng-disabled="!EDITE_MODEL">{{item.name}}</ion-checkbox>
                    </div>
                </ul>
            </div>
        </div>
    </ion-content>
</ion-view>